//
//  ActionPicker.h
//  iDemo
//
//  Created by danal on 11-11-10.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kToolBarHeight 35
#define kActionSheetHeight 480


@protocol ActionPickerDelegate;

@interface ActionPicker : UIView<UIActionSheetDelegate> {
    UIActionSheet *_as;
    UIToolbar *_toolbar;
}

@property(nonatomic,assign) id<ActionPickerDelegate> delegate;

          
- (id)initWithTitle:(NSString *)title delegate:(id<ActionPickerDelegate>)delegate picker:(UIPickerView *)picker;

- (void)setBarStyle:(UIBarStyle)barStyle;

- (IBAction)showInView:(UIView *)_view;

- (IBAction)OK;

- (IBAction)Cancel;


@end


#pragma mark - 

@protocol ActionPickerDelegate <NSObject>
@optional
-(void)didOKButtonPressed:(ActionPicker *)picker;
-(void)didCancelButtonPressed:(ActionPicker *)picker;

@end